export const getItem = (key) => {
  return JSON.parse(sessionStorage.getItem(key));
};
export const setItem = (key, value) => {
  if (typeof value === "object") {
    sessionStorage.setItem(key, JSON.stringify(value));
  }
};
